<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<$ include header.html$>
<h1><$= currentTime $></h1>
<h2>现在由<$= id$>号技师问你服务</h2>
<h3>你好,我是<$= name$> ,<$= age$> 岁</h3>
<h4><$= username$></h4>
我的技能是:
<ul>
    <$ for(var i=0;i<skills.length;i++){$>
    <li><$= skills[i]$></li>
    <$ }$>
</ul>
<div>
    <button onclick="add()">增加cookie</button>
    <button  onclick="del()">删除cookie</button>
    <button  onclick="editor()">修改cookie</button>
    <button  onclick="show()"> 查看cookie</button>
</div>
<script>
    function add() {
      fetch('/add',{
        method:'post',
        headers:{
          "Content-type":"application/json"
        }
      })
    }
    function del() {
      fetch('/del',{
        method:'post',
        headers:{
          "Content-type":"application/json"
        }
      })
    }
    function editor() {
      fetch('/editor',{
        method:'post',
        headers:{
          "Content-type":"application/json"
        }
      })
    }
    function show() {
      fetch('/show',{
        method:'post',
        headers:{
          "Content-type":"application/json"
        }
      })
    }
</script>
</body>
</html>
